package org.real.guetshop.pojo.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ProductDTO implements Serializable {

    //商品id
    @NotNull
    private Integer id;

    //商品名称
    @NotNull
    private String name;

    //商品分类id
    @NotNull
    private Integer categoryId;

    //商品分类名称
    private String categoryName;

    //商品所属商家id
    @NotNull
    private Integer storeId;

    //商品价格
    @NotNull
    private BigDecimal price;

    //图片
    @NotNull
    private String image;

    //状态
    private Integer status;

    //描述
    private String description;

    //商品库存
    private Integer total;

    //商品单位
    private String unit;
}
